Skip to content

Add illumos support to libc++ and LLVM.#61

Merged
alexey-milovidov merged 1 commit intoClickHouse:clickhouse1from
jmcarp:illumos-support
Jan 5, 2026
Merged

Add illumos support to libc++ and LLVM.#61
alexey-milovidov merged 1 commit intoClickHouse:clickhouse1from
jmcarp:illumos-support

Conversation

@jmcarp
Copy link

@jmcarp jmcarp commented Jan 5, 2026

Add illumos support to libc++ and LLVM.

libc++ changes:

  • Add __sun to pthread platforms and rune table providers.
  • Add illumos ctype mask definitions with non-overlapping __regex_word.
  • Use musl locale shim for missing *_l functions.
  • Skip overloads already defined in illumos stdlib.
  • Fix conflicting __sentinel, _E1-_E24 macros.

LLVM changes:

  • Fix conflicting FS, CS/CE macros.
  • Use std::fabs instead of std::abs for float in SampleProfileProbe.

Part of llvm#23777.

cc @alexey-milovidov

libc++ changes:
- Add __sun to pthread platforms and rune table providers.
- Add illumos ctype mask definitions with non-overlapping __regex_word.
- Use musl locale shim for missing *_l functions.
- Skip overloads already defined in illumos stdlib.
- Fix conflicting __sentinel, _E1-_E24 macros.

LLVM changes:
- Fix conflicting FS, CS/CE macros.
- Use std::fabs instead of std::abs for float in SampleProfileProbe.

Part of llvm#23777.
@alexey-milovidov alexey-milovidov self-assigned this Jan 5, 2026
@alexey-milovidov alexey-milovidov merged commit bc1e304 into ClickHouse:clickhouse1 Jan 5, 2026
2 checks passed
@rschu1ze
Copy link
Member

rschu1ze commented Jan 6, 2026

@jmcarp Was the code contributed to upstream LLVM? We (ClickHouse) better don't carry large patches in external libraries around.

@rschu1ze
Copy link
Member

rschu1ze commented Jan 6, 2026

@jmcarp

llvm#23777

That's a ticket from 2015. Typo?

@jmcarp
Copy link
Author

jmcarp commented Jan 6, 2026

Sorry, linked issue should be ClickHouse/ClickHouse#23777. And I'd be happy to submit this upstream. I'll take a look later this week, hopefully today.

@rschu1ze
Copy link
Member

rschu1ze commented Jan 6, 2026

Yes, upstreaming this would be great @jmcarp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants